#include<stdio.h>
int main()
{
	int m=0,n=0,r=0,i=0,j=0;
	int a[200]={0};
	scanf("%d",&m);
	getchar();
	scanf("%d",&n);
	for(;;)
	{
		r=(m*10)%n;
		a[j++]=(m*10-r)/n;
		m=r;
		if(j==200) break;
		if(r==0) break;
	}

	printf("0.");
	for(i=0;i<j;i++)
	{
	
		printf("%d",a[i]);
	}

	return 0;
}
